package db

import "gorm.io/gorm"

type QueryOption func(*gorm.DB)

func GormWithUserId(userID uint64) QueryOption {
	return func(db *gorm.DB) {
		db.Where("`user_id` = ?", userID)
	}
}

func GormWithId(id uint64) QueryOption {
	return func(db *gorm.DB) {
		db.Where("`id` = ?", id)
	}
}
